package chapter_six.P78.Controller;

import chapter_six.P78.bean.Actor;
import chapter_six.P78.builder.ActorBuilder;

/**
 * Data time:2021/9/18 15:32
 * StudentID:2019112118
 * Author:hgw
 * Description: 角色控制器，充当指挥者
 */
public class ActorController {
    //逐步构建复杂产品对象
    public Actor construct(ActorBuilder ab) {
        Actor actor;
        ab.buildType();
        ab.buildSex();
        ab.buildFace();
        ab.buildCostume();
        ab.buildHairstyle();
        actor = ab.createActor();
        return actor;
    }
}
